package spitfire;
import light3d.*;
import java.awt.*;

class SpitfireBase
{
  final double MAX_WIDTH = 1000.0f, MAX_LENGTH = 1000.0f, TREE_START = 200.0f;
  final double RUNWAY_DISTANCE = 100;
  WavefrontMesh runway;
  public SpitfireBase(int team)
  {
    team = team==0 ? -1 : 1;
    runway = new WavefrontMesh("data/runway.obj");
    runway.applyColor(BufferedCanvas.getRGBColor(100, 100, 100));
    runway.setPosition(0, 0, RUNWAY_DISTANCE*team);
  }
  public void render(BufferedCanvas bc, PointWithAngle camera)
  {
    runway.render(bc, camera);
  }
}
